package main

import (
	"fmt"
	"gin_mall/conf"
	"gin_mall/routes"
)

func main() {
	conf.Init()
	r := routes.NewRouter()
	err := r.Run(conf.HttpPort)
	if err != nil {
		fmt.Println("启动服务器失败,失败原因:" + err.Error())
	}
}
